import React from 'react';
import {
  AppRegistry,
} from 'react-native';
import {DrawerNavigator,TabNavigator,StackNavigator} from 'react-navigation'
import HomeScreen from './app/home'
import DetailScreen from './app/detail'
import SettingScreen from './app/setting'

const HomeStack = StackNavigator(
  {//定义路由
    Home:{screen:HomeScreen},
    Detail:{screen: DetailScreen},
  },
  {

  }
);

const RootStack = TabNavigator(
  {//定义路由
    Home:{screen:HomeStack},
    Setting:{screen: SettingScreen},
  },
  {

  }
);

export default class App extends React.Component {
  render() {                            //将Navigation作为根路径导出
    return <RootStack />;
  }
}
